Skip to content

Conversation

@anveshmupparaju
Copy link
Contributor

This pull request introduces a new Flow Action in ServiceNow that calculates the duration between a given start date and end date. The action considers a specified schedule and time zone to ensure accurate duration computation.

Inputs:

Start Date

End Date

Schedule

Time Zone
Outputs:

Days

Hours

Minutes

Seconds

Total Duration (in milliseconds)

Notes:

The duration is parsed and returned in both human-readable format and total seconds.

Handles partial durations (e.g., only minutes or seconds) gracefully.

@github-actions
Copy link

github-actions bot commented Oct 2, 2025

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@bird-03 bird-03 self-assigned this Oct 2, 2025
@bird-03 bird-03 merged commit bb2bb72 into ServiceNowDevProgram:main Oct 2, 2025
@bird-03
Copy link
Contributor

bird-03 commented Oct 2, 2025

Thanks for the contribution! Handling partial duration will be very helpful in many cases
Happy Hacking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants